home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5624 < prev    next >
Encoding:
Text File  |  1996-08-05  |  959 b   |  31 lines

  1. Path: sun001.spd.dsccc.com!spd!jmccarty
  2. From: jmccarty@spd.dsccc.com (Mike McCarty)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: const char??
  5. Date: 20 Feb 1996 01:25:28 GMT
  6. Organization: DSC Communications Corporation, Plano, Texas USA
  7. Message-ID: <4gb7u8$p5o@sun001.spd.dsccc.com>
  8. References: <31287436.1235873@news.inforamp.net>
  9. NNTP-Posting-Host: aplo139.spd.dsccc.com
  10.  
  11. In article <31287436.1235873@news.inforamp.net>,
  12. Danny Heuman <dsheuman@inforamp.net> wrote:
  13. )What is a const char?  I am getting an error at compile time stating
  14. )that it can not convert an int to a const char.  I'm using strcpy.
  15. )
  16. )
  17. )Danny Heuman
  18. )dsheuman@inforamp.net
  19.  
  20.  
  21. Please post a little code. This is not much to go on.
  22.  
  23. "const" means that the code is not permitted to change the object at run
  24. time (after perhaps an initial assignment).
  25.  
  26. Mike
  27. ----
  28. char *p="char *p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
  29.  
  30. I don't speak for DSC.         <- They make me say that.
  31.